package edu.sctu.xuping.month05.day20150510;

/**
 * Created by user16 on 2015/5/10.
 */
public class TextFour {
    public static void main(String[] args) {
        TextOne textone = new TextOne();
        textone.add = 20;

        TextTwo texttwo = new TextTwo();
        TextThree textthree = texttwo.getSum(textone);
        System.out.println(textthree.number + ":" + texttwo.sum);
        texttwo.getSum(textone);
//       TextThree textthree =texttwo.getSum(textone);
        System.out.println(textthree.number + ":" + texttwo.sum);
        TextFive textfive = new TextFive(90);
        textfive.getNumber();
        System.out.println(textfive.sum);
    }

}

